/* CSS Variables & Design System */
:root {
    /* Palette */
    --color-primary-dark: #050a14;
    --color-primary: #0a192f;
    --color-primary-light: #112240;
    --color-secondary: #8892b0;
    --color-accent: #64ffda;
    /* Teal accent for tech feel, can be adjusted */
    --color-white: #e6f1ff;
    --color-pure-white: #ffffff;
    --color-text-dark: #121212;

    --overlay-color: rgba(10, 25, 47, 0.85);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.5s ease-out;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-primary-dark);
    color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-pure-white), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-pure-white);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-pure-white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-pure-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-pure-white);
    border: 1px solid var(--color-pure-white);
    margin-left: var(--spacing-sm);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.btn-main {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.6);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-pure-white);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.loader-line {
    width: 0;
    height: 2px;
    background-color: var(--color-pure-white);
    animation: loadLine 1.5s ease-in-out forwards;
}

@keyframes loadLine {
    to {
        width: 100%;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: backdrop-filter 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    /* Setup generic font for container */
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.logo-mentor {
    color: var(--color-pure-white);
}

.logo-gastro {
    color: #FBB03B;
    /* Gold/Orange Brand Color */
    opacity: 0;
    /* Star invisible for progressive load */
    animation: fadeGlow 1.5s ease-out forwards 0.5s;
}

@keyframes fadeGlow {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        text-shadow: 0 0 10px rgba(251, 176, 59, 0.4);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--color-white);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    color: var(--color-accent) !important;
}

.btn-nav:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn-nav::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    /* Ensure full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.7) 0%, rgba(10, 25, 47, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    /* Corrected to 3.8rem as requested */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--color-pure-white);
}

.highlight-dot {
    color: #FBB03B;
    /* Gold dot */
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    font-family: var(--font-body);
    margin-bottom: 2rem;
    color: var(--color-white);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-buttons .btn {
    width: auto !important;
    /* Fuerza a que no sea ancho completo */
    min-width: 200px;
    padding: 14px 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--color-secondary);
}

/* Updated secondary button hover with tech blue glow */
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight fill */
    border-color: #4CC9F0;
    /* Tech blue accent */
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.4);
    /* Glowing effect */
    color: var(--color-pure-white);
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.6);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    /* Adjusted closer to bottom */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    opacity: 0.5;
    /* Reduced opacity */
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--color-white);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}


/* Shared Section Styles */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3.5rem;
    /* Increased from 2.5rem */
    color: var(--color-pure-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    /* Making it imposing */
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--color-secondary);
    font-size: 1.5rem;
    /* Increased from 1.1rem */
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* Marquee Section */
.marquee-section {
    padding: 3rem 0;
    background-color: var(--color-primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Fade edges blur effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: inline-block;
    animation: marquee 30s linear infinite;
    /* Pause on hover to allow clicking */
}

/* Pause animation when hovering the track */
.marquee-track:hover {
    animation-play-state: paused;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    /* Extra-Bold/Black */
    font-size: 1.5rem;
    color: var(--color-pure-white);
    margin: 0 4rem;
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    /* Remove underline for links */
    /* Subtle text shadow/outline effect */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 5px;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover effect on the specific brand */
.brand-name:hover {
    opacity: 1 !important;
    /* Force full opacity on hovered item */
    transform: scale(1.1);
    color: var(--color-pure-white);
    text-shadow: 0 0 15px var(--color-accent), 0 0 30px rgba(100, 255, 218, 0.4);
    /* Tech blue glow */
}

/* Dim siblings when hovering the track */
.marquee-track:hover .brand-name {
    opacity: 0.3;
    /* Dim all items */
    filter: blur(1px);
    /* Optional: slight blur for depth */
}

/* Reset filter for the hovered item specifically */
.marquee-track .brand-name:hover {
    filter: none;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Upwork Trust Bar */
/* Upwork Trust Bar */
/* Upwork Trust Bar Refinado */
.upwork-trust-bar {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding: 30px 0;
    /* Keep original padding */
    text-align: center;
    /* Keep original text alignment */
    position: relative;
    overflow: hidden;
}

/* Texture overlay for Upwork section */
.upwork-trust-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.upwork-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upwork-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    /* Fuerza máxima */
    font-size: 1.8rem;
    /* Tamaño prominente */
    color: #ffffff;
    /* Blanco puro */
    letter-spacing: -0.5px;
    /* Un poco más apretado para verse más moderno/tech */
    line-height: 1;
    text-transform: none;
    /* Upwork se escribe con la U inicial en mayúscula usualmente */
}

/* Ajuste del contenedor para que todo alinee perfectamente */
.upwork-badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.plus-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plus-hex {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(251, 176, 59, 0.4));
}

.plus-text {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #FBB03B;
    /* Tu dorado de Mentor Gastronómico */
    text-shadow: 0 0 10px rgba(251, 176, 59, 0.2);
}

.upwork-text {
    font-size: 1.1rem;
    max-width: 800px;
    line-height: 1.5;
    color: var(--color-white);
    /* Ensure text is visible */
}

.btn-upwork {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-upwork:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    transform: scale(1.05);
}

/* Detailed Solutions Section */
.solutions-section {
    background-color: var(--color-primary-dark);
}

.solutions-section .section-header {
    max-width: 950px;
    margin-bottom: 2.5rem;
}

.solutions-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.28;
    text-transform: none;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
}

.solutions-section .section-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 820px;
    color: var(--color-secondary);
}

.solutions-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.solution-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 2.2rem 2rem;
    border-radius: 24px;
    background: #11151b;
    /* Deep, slightly warm dark blue-grey */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Soft baseline shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    text-align: left;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    /* Deeper shadow on hover */
    border-color: rgba(251, 176, 59, 0.3);
}

.solution-img-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
}

.solution-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.solution-icon {
    color: #FBB03B;
    margin-bottom: 1.2rem;
    background: rgba(251, 176, 59, 0.1);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.solution-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.solution-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-pure-white);
}

.solution-text .lead-text {
    color: #FBB03B !important;
}

.solution-text p {
    font-size: 0.98rem;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.solution-text .btn-group {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Feature List in Solution Card */
.feature-list {
    text-align: left;
    width: 100%;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

/* --- Servicios Premium (3D Flip) --- */
.premium-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: radial-gradient(circle at center, rgba(10, 25, 47, 0.95) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

.premium-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
}

.flip-card {
    background-color: transparent;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

@media (hover: hover) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.flip-card-front {
    background: #11151b;
    /* Deep, slightly warm dark blue-grey */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer border */
}

.flip-card-front h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-pure-white);
    font-weight: 300;
    letter-spacing: 1px;
}

.flip-card-back {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.3);
    transform: rotateY(180deg);
}

.flip-card-back h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.flip-card-back p {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* Sales Section */
.sales-section {
    background: linear-gradient(135deg, #020c1b 0%, #0a192f 100%);
    /* Deep dark high contrast */
    position: relative;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    /* Add breathing room before Reviews/FAQ */
}

/* --- Sección IA Estilo Artículo --- */
.sales-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* 1fr imagen, 1.5fr texto */
    gap: 4rem;
    align-items: center;
}

.sales-content {
    /* El texto a la derecha */
    order: 2;
}

.sales-image {
    flex: unset;
    height: auto;
    max-height: none;
    order: 1;
    /* Imagen a la izquierda */
    border-radius: 40px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.sales-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    /* Imagen vertical */
    object-fit: cover;
}

/* Reviews Section */
.reviews-section {
    background-color: #0b1d36;
    /* Slightly lighter/different shade */
    overflow: hidden;
}

/* --- Tarjetas de Resultados Verticales --- */
/* --- Reviews Marquee Section --- */
.reviews-section {
    background-color: #0b1d36;
    overflow: hidden;
    padding: 6rem 0;
}

.reviews-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Mask for fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Ensure track is wide enough */
    animation: reviews-scroll 60s linear infinite;
    /* Slow scroll */
    padding: 2rem 0;
    /* Space for hover effects */
}

/* Pause and effect on hover */
.reviews-track:hover {
    animation-play-state: paused;
}

.reviews-track .solution-card {
    width: 400px;
    /* Fixed width for cards */
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    height: auto;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    text-align: center;
    padding: 2rem;
    /* Restore padding from original solution card */
}

.reviews-track .solution-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

/* Expand on hover */
.reviews-track .solution-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--color-accent);
}

@keyframes reviews-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
        /* Scroll half the track (assuming duplicated content) */
    }
}

/* Ensure inner text alignment */
.reviews-track .solution-text {
    width: 100%;
}


/* FAQ Section */
.faq-section {
    background-color: var(--color-primary-dark);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-white);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--color-secondary);
    font-size: 1rem;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #020c1b 100%);
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

.contact-info {
    flex: 1;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--color-pure-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.info-item p {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--color-accent);
    font-weight: 600;
}

.social-links a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    flex: 1.2;
    background: rgba(17, 34, 64, 0.5);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--color-pure-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: #020c1b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    color: var(--color-pure-white);
    margin-bottom: 0.5rem;
}

.copyright {
    color: var(--color-secondary);
}

.footer-right a {
    margin-left: 1.5rem;
    color: var(--color-secondary);
}

.footer-right a:hover {
    color: var(--color-accent);
}

/* Chat Widget */
#chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

#chat-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-accent);
    /* Changed to accent for better visibility */
    color: var(--color-primary-dark);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chat-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(100, 255, 218, 0.4);
}

#chat-trigger-btn svg {
    fill: var(--color-primary-dark);
    /* Contrast icon */
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: var(--color-primary-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background-color: var(--color-primary);
    /* Slightly darker header */
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.chat-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-pure-white);
}

.status-indicator {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff00;
    /* Online green */
    box-shadow: 0 0 5px #00ff00;
}

#close-chat {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

#chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 0.8rem;
    border-radius: 20px;
    font-family: var(--font-body);
}

#chat-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

#send-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0 0.5rem;
    transition: transform 0.2s ease;
}

#send-btn:hover {
    transform: scale(1.1);
}

#send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10001;
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 1.5rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
    max-width: 90%;
    width: 400px;
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    color: var(--color-primary-dark);
    background-color: var(--color-accent);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#notification-message {
    color: var(--color-white);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 500px) {
    .notification-toast {
        width: 90%;
        bottom: 20px;
        top: auto;
        transform: translateX(-50%) translateY(100px);
    }

    .notification-toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive for New Sections */
    .solution-item,
    .solution-item.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
        text-align: center;
    }

    .solution-image {
        width: 100%;
        height: 300px;
        /* Kept for mobile, but will be overridden for desktop above */
    }

    .solution-icon {
        margin: 0 auto 1.5rem auto;
    }

    .sales-container {
        flex-direction: column;
    }

    .sales-image {
        width: 100%;
        height: 300px;
        order: -1;
        /* Image first on mobile */
    }

    .sales-copy {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-right a {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {

    /* Restoring & Adding Responsive Styles */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-white);
        margin-bottom: 6px;
        transition: 0.3s;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* WhatsApp Float Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--color-pure-white);
    color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Chat Widget Styles */
#chat-widget-container {
    position: fixed;
    bottom: 95px;
    /* Moved up to make room for WhatsApp */
    right: 20px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

#chat-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FBB03B;
    /* Brand Gold/Orange */
    border: none;
    box-shadow: 0 4px 15px rgba(251, 176, 59, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chat-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(251, 176, 59, 0.6);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: rgba(10, 25, 47, 0.95);
    /* Deep dark blue */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    height: 500px;
    transform-origin: bottom right;
    animation: slideInChat 0.3s ease-out;
}

#chat-window.active {
    display: flex;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.chat-header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    background: #FBB03B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0a192f;
    font-size: 0.9rem;
}

.chat-info h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    /* Online Green */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #4CAF50;
}

#close-chat {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#close-chat:hover {
    color: white;
}

#chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    align-self: flex-start;
    border-radius: 12px 12px 12px 2px;
}

.user-message {
    background: #FBB03B;
    color: #0a192f;
    align-self: flex-end;
    border-radius: 12px 12px 2px 12px;
    font-weight: 500;
}

.chat-input-area {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 25px;
    color: white;
    font-family: 'Outfit', sans-serif;
}

#chat-input:focus {
    outline: none;
    border-color: #FBB03B;
}

#send-btn {
    background: #FBB03B;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #0a192f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

#send-btn:hover {
    transform: scale(1.1);
}

/* Scrollbar for chat */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Vertical Image Variant (9:16) */
.solution-image.vertical {
    flex: 0 0 350px;
    /* Constrain width to prevent excessive height */
    aspect-ratio: 9/16;
    height: auto;
    max-height: 620px;
}

/* Chat Overlay Styles */
.chat-overlay-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.rounded-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.chat-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-width: 75%;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.chat-bubble p {
    margin: 0;
    color: #333;
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 500;
}

.user-bubble {
    top: auto;
    bottom: 25%;
    right: -10px;
    border-bottom-right-radius: 4px;
}

.agent-bubble {
    top: auto;
    bottom: 8%;
    left: -10px;
    border-top-left-radius: 4px;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, #FF6B6B, #EE5253);
}

.agent-avatar {
    background: linear-gradient(135deg, #4834d4, #686de0);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .user-bubble {
        right: 10px;
        left: auto;
    }

    .agent-bubble {
        left: 10px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .sales-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .sales-content {
        order: 2;
    }

    .sales-image {
        order: 1;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* --- Legal Pages --- */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-primary-dark);
    color: var(--color-secondary);
    line-height: 1.8;
}

.legal-container h1,
.legal-container h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    /* text-gold */
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-container .last-update {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--color-pure-white);
}

.legal-container section {
    margin-bottom: 2rem;
}

.legal-container ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.text-gold {
    color: var(--color-accent) !important;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    /* Oculto por defecto */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    transition: bottom 0.5s ease-in-out;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.cookie-banner.show {
    bottom: 30px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 0.9rem;
}

.btn-gold-sm {
    background: linear-gradient(45deg, #FBB03B, #FFD700);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner.show {
        bottom: 90px;
        /* Leave space for Whatsapp */
    }
}